package com.jinniulive.platform.module.me;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.jinniulive.platform.R;
import com.jinniulive.platform.module.live.LiveActivity;
import com.jinniulive.platform.module.login.PersonSettingsActivity;

/**
 * A simple {@link Fragment} subclass.
 */
public class MeFragment extends Fragment {


    public MeFragment() {
        // Required empty public constructor
    }

    private Button mButton,mButton2;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_me, container, false);

        mButton = (Button) view.findViewById(R.id.fragment_home_bt_set);
        mButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getContext(), PersonSettingsActivity.class));
            }
        });
        mButton2 = (Button) view.findViewById(R.id.fragment_home_bt_live);
        mButton2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getContext(), LiveActivity.class));

            }
        });
        return view;
    }

}
